package com.yipinhouse.employee.service.impl;

import cn.hutool.jwt.JWTUtil;
import com.yipinhouse.employee.infra.model.Achievement;
import com.yipinhouse.employee.infra.mapper.AchievementMapper;
import com.yipinhouse.employee.service.AchievementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.redisson.Redisson;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

/**
 * <p>
 * 业绩表 服务实现类
 * </p>
 *
 * @author WangCong
 * @since 2022-11-30
 */
@Service
public class AchievementServiceImpl extends ServiceImpl<AchievementMapper, Achievement> implements AchievementService {

    @Resource
    private Redisson redisson;

    @Override
    public String sendIntention(Integer houseId, Integer brokerId, String houseType, BigDecimal amount) {
        String url = "http://192.168.0.1:9005/active?brokerId="+brokerId+""+"&houseId="+houseId+"";
        return url;
    }
}
